package twentyThreePattern.zMixed.factory_strategy;

public class StrategyFactory {

	// 策略工厂
	public static IDeduction getDeduction(StrategyManEnum strategy) {
		IDeduction deduction = null;
		try {
			deduction = (IDeduction) Class.forName(strategy.getValue()).newInstance();
		} catch (Exception e) {
			// 异常处理
			e.printStackTrace();
		}
		return deduction;

	}
}
